package com.yakisoft.jublish;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

public class Jublish {
	static public void main(String[] args) {
		if (args.length != 1) {
			System.out.println("Jublish 1.0\n(C) 2009 Yakisoft\n\nUsage:\n\tjublish config-file.jublish\n");
			System.exit(1);
		}

		try {
			FileInputStream stream = new FileInputStream(args[0]);
			InputStreamReader reader = new InputStreamReader(stream);
			SiteConfig config = new SiteConfig(reader);
			config.publish();

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
